package com.ray.pojo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.ray.util.DingTalkUtil;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@JsonIgnoreProperties(ignoreUnknown = true)
public class AttendSourceRecordExportPojo {
	private Integer userId;
	private String userName;
	private String deptName;
	private String timeResult;
	private String baseCheckTime;
	private String userCheckTime;
	private String workdate;
	private String workshopName;
	private String location;
	private String baseCheckStartTime;
	private String baseCheckEndTime;
	private String userCheckInvaildTime;
	
	public String getTimeResult() {
		return timeResult;
	}
	public void setTimeResult(String timeResult) {
		switch(timeResult) {
		case DingTalkUtil.TIME_RESULT_NORMAL:timeResult = "正常";break;
		case DingTalkUtil.TIME_RESULT_LATE:timeResult = "迟到";break;
		case DingTalkUtil.TIME_RESULT_EARLY:timeResult = "早退";break;
		}
		this.timeResult = timeResult;
	}
	public String getWorkdate() {
		return workdate;
	}
	public void setWorkdate(String workdate) {
		this.workdate = workdate+" "+DingTalkUtil.getWeekOfDateStr(workdate);
	}
}
